package com.yztc.yidoutang.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 存放从网络获取的包含商品列表信息的实体类
 * <p>
 * pics : [......]
 * tag : 客厅
 * pagination : {......}
 */
public class GoodsListBean {
    @SerializedName("data")
    private DataBean data;
    @SerializedName("error")
    private boolean error;
    @SerializedName("message")
    private String message;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        @SerializedName("tag")
        private String tag;
        @SerializedName("pagination")
        private PaginationBean pagination;
        @SerializedName("pics")
        private List<GoodsBean> pics;

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        public PaginationBean getPagination() {
            return pagination;
        }

        public void setPagination(PaginationBean pagination) {
            this.pagination = pagination;
        }

        public List<GoodsBean> getPics() {
            return pics;
        }

        public void setPics(List<GoodsBean> pics) {
            this.pics = pics;
        }

        /**
         * 存储页数信息的实体类
         * <p>
         * record_count : 5646
         * page_count : 283
         * first : 1
         * last : 283
         * next : 2
         * prev : 1
         * current : 1
         * page_size : 20
         * page_base : 1
         */
        public static class PaginationBean {
            @SerializedName("record_count")
            private int recordCount;
            @SerializedName("page_count")
            private int pageCount;
            @SerializedName("first")
            private int first;
            @SerializedName("last")
            private int last;
            @SerializedName("next")
            private int next;
            @SerializedName("prev")
            private int prev;
            @SerializedName("current")
            private int current;
            @SerializedName("page_size")
            private int pageSize;
            @SerializedName("page_base")
            private int pageBase;

            public int getRecordCount() {
                return recordCount;
            }

            public void setRecordCount(int recordCount) {
                this.recordCount = recordCount;
            }

            public int getPageCount() {
                return pageCount;
            }

            public void setPageCount(int pageCount) {
                this.pageCount = pageCount;
            }

            public int getFirst() {
                return first;
            }

            public void setFirst(int first) {
                this.first = first;
            }

            public int getLast() {
                return last;
            }

            public void setLast(int last) {
                this.last = last;
            }

            public int getNext() {
                return next;
            }

            public void setNext(int next) {
                this.next = next;
            }

            public int getPrev() {
                return prev;
            }

            public void setPrev(int prev) {
                this.prev = prev;
            }

            public int getCurrent() {
                return current;
            }

            public void setCurrent(int current) {
                this.current = current;
            }

            public int getPageSize() {
                return pageSize;
            }

            public void setPageSize(int pageSize) {
                this.pageSize = pageSize;
            }

            public int getPageBase() {
                return pageBase;
            }

            public void setPageBase(int pageBase) {
                this.pageBase = pageBase;
            }
        }
    }
}